package com.Design.Visitor;

import java.io.ObjectOutputStream;

/**
 * @Author Lc
 * @Date 2023/9/30
 * @PackageName: com.Design.Visitor
 * @ClassName: MainGo
 * @Description:
 */

public class MainGo {
    public static void main(String[] args) {
        Man man = new Man();
        ObjectStructure objectStructure = new ObjectStructure();
        objectStructure.add(man);
        objectStructure.display(new Success());
    }
}
